﻿
using libedi.API;
using System.Data;

namespace CodeBackup.Code
{
    internal class Tools
    {

        public static List<string> GetCodeList()
        {
            WebApi webApi = new WebApi(libedi.SourceType.CODE);
            DataTable strings = webApi.GetDataObject<DataTable>("SHOW TABLES");
            List<string> list = new List<string>();
            foreach (DataRow row in strings.Rows)
            {
                list.Add(row[0].ToString());


            }
            return list;

        }
    }
}
